package com.woniu.shop.mapper;

import com.woniu.shop.pojo.ShopAppraise;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.shop.pojo.ShopAppraise;
import com.woniu.shop.pojo.vo.ShopAuditVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 门店评价表 Mapper 接口
 * </p>
 *
 * @author LiFangyu
 * @since 2023-02-15
 */

public interface ShopAppraiseMapper extends BaseMapper<ShopAppraise> {

    ShopAuditVo queryAudit(@Param("id") int id);
    @Update("update t_shop_appraise set reply = #{replyContent} where id = #{id}")
    boolean reply(@Param("id") Integer id,@Param("replyContent") String replyContent);

}
